package com.exchange.Public;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import com.exchange.View.a.d;

public class f extends Thread
{
  ImageView a;
  String b;
  Context c;
  Boolean d;
  Handler e;

  public f(Context paramContext, ImageView paramImageView, String paramString)
  {
    this(paramContext, paramImageView, paramString, Boolean.valueOf(false));
  }

  public f(Context paramContext, ImageView paramImageView, String paramString, Boolean paramBoolean)
  {
    this.d = Boolean.valueOf(false);
    this.e = new l(this);
    this.c = paramContext;
    this.a = paramImageView;
    this.b = paramString;
    this.d = paramBoolean;
  }

  public void run()
  {
    Drawable localDrawable = o.a(this.c, this.b);
    Message localMessage = new Message();
    if (localDrawable == null)
      localMessage.obj = new a(this, this.a, this.c.getResources().getDrawable(d.k(this.c)));
    while (true)
    {
      this.e.sendMessage(localMessage);
      return;
      localMessage.obj = new a(this, this.a, localDrawable);
    }
  }

  public class a
  {
    ImageView a;
    Drawable b;

    public a(, ImageView paramImageView, Drawable paramDrawable)
    {
      this.a = paramImageView;
      this.b = paramDrawable;
    }
  }
}